# -*- coding:utf-8 -*-

from WebautoTest.common.pages import page
from WebautoTest.base.base_yaml import get_yaml
import sys
from WebautoTest.base.base_pack_element import Packelement


class ComPage:
    def __init__(self, yaml_parameter):
        _init = {"driver": yaml_parameter["driver"], "test_case": get_yaml(yaml_parameter["path"]), "caseName": sys._getframe().f_code.co_name}
        self.page = page.PagesObjects(_init)

    def operate(self):
        self.page.operate()

    # def checkpoint(self):
    #     self.page.check()


if __name__ == "__main__":
    pass
